<link rel="stylesheet" href="__STATIC__/plugs/lay-module/treetable-lay/treetable.css?v={:time()}" media="all">
<style>
    .layui-btn:not(.layui-btn-lg ):not(.layui-btn-sm):not(.layui-btn-xs) {
        height: 34px;
        line-height: 34px;
        padding: 0 8px;
    }
    /*.layui-table-cell{*/
    /*display:table-cell;*/
    /*vertical-align: middle;*/
    /*}*/
    able{table-layout: fixed;}
    td{word-break: break-all; word-wrap:break-word;}
    .layui-fluid {
        height:auto;
    }
    
</style>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('system.ces/add')}"
               data-auth-edit="{:auth('system.ces/edit')}"
               data-auth-delete="{:auth('system.ces/delete')}"
               data-auth-updates="{:auth('system.ces/updates')}"
               data-auth-updatess="{:auth('system.ces/updatess')}"

               lay-filter="currentTable">
        </table>
    </div>
</div>
<script type="text/html" id="toolbar">
    <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-treetable-refresh><i class="fa fa-refresh"></i> </button>
    <button class="layui-btn layui-btn-normal layui-btn-sm {if !auth('system.ces/add')}layui-hide{/if}" data-open="system.ces/add" data-title="添加"><i class="fa fa-plus"></i> 添加</button>
    <button class="layui-btn layui-btn-sm layui-btn-danger {if !auth('system.ces/del')}layui-hide{/if}" data-url="system.ces/del" data-treetable-delete="currentTableRenderId"><i class="fa fa-trash-o"></i> 删除</button>
</script>
<script type="text/html" id="right_button">
    <button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('system.ces/details')}layui-hide{/if}" data-open="system.ces/details?id={{d.id}}" data-title="详情">详情</button>
<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('system.ces/edit')}layui-hide{/if}" data-open="system.ces/edit?id={{d.id}}" data-title="编辑">编辑</button>

    {{# if(d.status==1){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('system.ces/updatess')}layui-hide{/if}" data-open="system.ces/updatess?id={{d.id}}" data-title="测试用">测试用</button>{{# } }}

</script>